<?php

namespace App;

use App\BaseModel;

class Fan extends BaseModel
{
    // 粉丝用户
    public function fuser() {
        return $this->hanOne(\App\User::class, 'id', 'fan_id');
    }

    // 被关注的用户
    public function suser() {
        return $this->hanOne(\App\User::class, 'id', 'star_id');
    }
}
